<%@ include file="/html/book/init.jsp" %>


<%
	BMSBook bmsBook = null;
	long bookId = ParamUtil.getLong(request, "bookId");
	if (bookId > 0L){
			bmsBook = BMSBookLocalServiceUtil.fetchBMSBook(bookId);
	}
	
	String backURL = ParamUtil.getString(request, "backURL");
	
	boolean showHeader = ParamUtil.getBoolean(request, "showHeader", true);
%>

<c:if test="<%= Validator.isNotNull(bmsBook) %>">
	<c:if test="<%= showHeader %>">
	<liferay-ui:header title="Book Details"
			backURL="<%= backURL %>" backLabel="&laquo; Back to List"/>
			</c:if>
	<table border="1">
		<tr>
			<td>Book Title</td>
			<td><%= bmsBook.getBookTitle() %></td>
		</tr>
		<tr>
			<td>Author</td>
			<td><%= bmsBook.getAuthor() %></td>
		</tr>
		<tr>
			<td>Date Added</td>
			<td><%= bmsBook.getCreateDate() %></td>
		</tr>
		<tr>
			<td>Last Modified </td>
			<td><%= bmsBook.getModifiedDate() %></td>
		</tr>
	</table>
</c:if>